package com.cloud.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * @auther 代替 Fallback 方法 通配服务降级
 * 测试现在只能 解决 服务端宕机情况下 走进来   程序异常不会进来
 * @create 2020-02-20 18:22
 */
@Component
public class PaymentFallbackService implements PaymentHystrixService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return "-----PaymentFallbackService fall back-paymentInfo_OK ,o(╥﹏╥)o";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "-----PaymentFallbackService fall back-paymentInfo_TimeOut ,o(╥﹏╥)o";
    }
}
